import http from '@/utils/request'

// 会员分页查询
export function queryMembers(params) {
    return http.post('admin/member/list', { ...params })
}

// 添加会员
export function saveMember(params) {
    return http.post('admin/member/add', { ...params })
}

// 更新会员信息
export function updateMember(params) {
    return http.put('admin/member/update', { ...params })
}

// 删除会员
export function deleteMember(id) {
    return http.delete(`admin/member/delete/${id}`)
}

// 获取会员详情
export function getMemberDetail(id) {
    return http.get(`admin/member/memberDetail/${id}`)
}

// 获取所有会员列表
export function getAllMembers() {
    return http.get('admin/member/all')
}
